package com.yuanian.ecsplus.platform;



import java.util.List;
import java.util.Map;

public class EcsPlatformSupport {

   /* public Map selectBoDataByBoDataId(String apiName, String apiVersionNumber, String boDataId) {
        BusinessObjectService businessObjectService = SpringUtil.getBean(BusinessObjectService.class);
        Map map = businessObjectService.selectBoDataByBoDataId(apiName, null, boDataId);
        return map;
    }

    public List<Map> selectBoDataList(String apiName, String apiVersionNumber, String sql) {
        BusinessObjectService businessObjectService = SpringUtil.getBean(BusinessObjectService.class);
        BOQueryParameter boQueryParameter = new BOQueryParameter();
        boQueryParameter.setQueryNoValidation(sql);
        boQueryParameter.setLimit(Integer.MAX_VALUE);
        boQueryParameter.setQuery(sql);
        //获取数据
        List<Map> listMapData = businessObjectService.selectBoDataList(apiName, null, boQueryParameter);
        return listMapData;
    }

    public Map insertBoData(String apiName, String apiVersionNumber, Map boData) {
        return SpringUtil.getBean(BusinessObjectService.class).insertBoData(apiName, null, boData);
    }

    public Map issueBoData(String apiName, String apiVersionNumber, Map boData) {
        return SpringUtil.getBean(BusinessObjectService.class).issueBoData(apiName, null, boData);
    }

    public Map updateBoData(String apiName, String apiVersionNumber, String boMainId, Map boData) {
        return SpringUtil.getBean(BusinessObjectService.class).updateBoData(apiName, null, boMainId, boData);
    }

    public int deleteByBoMainId(String apiName, String apiVersionNumber, String boMainId) {
        return SpringUtil.getBean(BusinessObjectService.class).deleteByBoMainId(apiName, null, boMainId);
    }*/

}
